-
-
Notifications
You must be signed in to change notification settings - Fork 2k
docs(www): enhance code blocks #4916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ngrx-io canceled.
|
✅ Deploy Preview for ngrx-site-v19 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2d56995
to
2a24034
Compare
2a24034
to
40e4479
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code blocks can't find the correct file to extract the code from.
This results in empty code blocks.
@timdeschryver Vite does not expose The files can be moved to Using a plugin may only work with development only. I think it would need to be an external API for production. |
@@ -35,4 +43,22 @@ import { Component, Input } from '@angular/core'; | |||
}) | |||
export class CodeExampleComponent { | |||
@Input() header: string = ''; | |||
@Input() path: string = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You add a lot of types that can be inferred instead. This will generate ESLint errors and causes a lint error in the build.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #
What is the new behavior?
path
to a code block now extracts the code from the given fileDoes this PR introduce a breaking change?
Other information